package cn.amoqi.springbootelk.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description:
 * @author: zhuiFeng
 * @date: 2021年06月01日 9:48
 */
@RestController
@Slf4j
public class IndexController {
    @RequestMapping
    public void index(){
        log.info("我爱北京天安门");
        log.error("我爱北京天安门");
        log.debug("我爱北京天安门");
        log.warn("我爱北京天安门");
    }

    public void testException(){
        throw new RuntimeException("111111111111");
    }
    
}
